package com.jeejam.product.sdk.api;

import com.jeejam.framework.base.pojo.Pager;
import com.jeejam.product.sdk.dto.ProductTypeDto;

import java.util.List;

public interface IProductTypeService {

    public int counts();

    public Pager getPager(int currentPage, int pageSize);

    public List<ProductTypeDto> findAllByPage(int currentPage, int pageSize);

    public List<ProductTypeDto> findAll();

    public Pager getPagerByCounts(int counts,int currentPage, int pageSize);

    public void deleteById(int id);

    public ProductTypeDto getById(int id);

    public void save(ProductTypeDto productTypeDto);

    public void update(ProductTypeDto productTypeDto);

    public int getTotalPage(int counts, int pageSize);
}
